package com.wp.design.observer;

public class Test {
	public static void main(String[] args) {
		Course course =new Course("JAVA精讲");
		Teacher teacher = new Teacher("王鹏");
		Teacher teacher2 = new Teacher("李四");
		Question question = new Question();
		question.setUserName("何星达");
		question.setContent("linux该如何学习");
		course.addObserver(teacher);
		course.addObserver(teacher2);
		course.produceQuestion(course,question);
	}
}
